package com.sk.bilibili.utils;

import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.Context;

public class ClipboardUtils {

    public static void setText(Context context, String value) {
        ClipboardManager manager = context.getSystemService(ClipboardManager.class);
        ClipData text = ClipData.newPlainText("text", value);
        manager.setPrimaryClip(text);
    }

}